#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/videodev2.h>
#include <string.h>
#include <sys/mman.h>
#include <assert.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>

using namespace std;
using namespace cv;

int main() {
	Mat m = (Mat_<float>(3, 3) << 1, 2, 3, 4, 5, 6, 7, 8, 10);
	Mat n = (Mat_<float>(3, 3) << 10, 21, 4, 2, 1, 1, 1, 1, 1);
	Mat r = (Mat_<float>(3, 3) << 12, 25, 10, 10, 11, 13, 15, 17, 21);
	Mat q;
	scaleAdd(m, 2, n, q);
	Mat isequal = q != r;
	cout << isequal << endl;
	if(countNonZero(q != r)==0){
		cout <<"equal" << endl;
	}
	else{
		cout <<"not equal" << endl;
	}
	return 0;
}

